import MainBody from "./Main-body.js"

module.exports = function(){
	function about (){
		$.ajax({
			url: '../app/Main-body.html',
			type: 'GET',
			dataType: 'html',
			success:function(data){
				$('body').append(data);
				$('.info').remove();
			
				//$('.hidden').before("<script src='MainBody.js'><\/script>");
				MainBody().MainBody();
				$(".bar li:nth-child(1)").removeClass('active');
				$(".bar li:nth-child(3)").addClass('active');
				$('.bar').on('mouseout', 'li', function() {
					event.preventDefault();
					var $value = $(this).attr("value");
					if ($value!="3") {
						$(this).removeClass('active');
						$(".bar li:nth-child(3)").addClass('active');
					}
					$("#bar_LP").css({
						"left":"5.48rem",
						"width":"0.72rem"
					});
				});
			}
		});
	}
	return{
		about:about
	}
}